package com.girl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

@RestController
public class HelloController {

    @Autowired
    private GirlProperties girlProperties;

    /**
     * 获取所有数据
     * @param id
     * @return
     */
    @RequestMapping(value = "/say/{id}", method = RequestMethod.GET)
    public String say(@PathVariable int id)
    {
        return "girl:age="+girlProperties.getAge(); //"ID="+id+","+girlProperties.getAge();
    }


}
